﻿<Window x:Class="remes.XDraw.LoadDrawingDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Load drawing" x:Uid="LoadDrawingDialog"
        Height="400" Width="600">

  <Grid>
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto"/>
      <RowDefinition Height="*"/>
      <RowDefinition Height="Auto"/>
    </Grid.RowDefinitions>

    <ToolBarTray Grid.Row="0">
      <ToolBar Band="0">
        <Button Content="Close" IsCancel="True" x:Name="btnClose" x:Uid="toolbar.Close"/>
        <Button Content="Paste" x:Name="btnPaste" x:Uid="toolbar.Paste" Click="btnPaste_Click"/>
        <Button Content="Load" x:Name="btnLoad" x:Uid="toolbar.Load" Click="btnLoad_Click"/>
      </ToolBar>
    </ToolBarTray>

    <TextBox Grid.Row="1" x:Name="xmlCode" FontFamily="Courier New"
             HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" AcceptsTab="True" AcceptsReturn="True" />

    <TextBlock Grid.Row="2" Text="Paste XAML code from clipboard and click Load." Margin="3"/>
  </Grid>
</Window>
